package frsf.cidisi.exercise.tp.situationCalculus;

import frsf.cidisi.faia.agent.Action;
import frsf.cidisi.faia.agent.ActionFactory;
import frsf.cidisi.exercise.tp.situationCalculus.actions.*;



public class Indiana_JonesActionFactory extends ActionFactory {

    private static Indiana_JonesActionFactory instance;

    private Indiana_JonesActionFactory() {
    }

    public static Indiana_JonesActionFactory getInstance() {
        if (instance == null) {
            instance = new Indiana_JonesActionFactory();
        }
        return instance;
    }

    @Override
    protected String endActionString() {
        return "noAction";
    }

   
     @Override
   	 protected Action stringToAction(String stringAction) {
        Action actionObject = null;
        System.out.println("accion: " + stringAction);
	if (stringAction.equals("tomar_tesoro")) {
            actionObject = new Tomar_tesoro();
        } else if (stringAction.equals("viajarA_Aragaey")) {
            actionObject = new ViajarA_Aragaey();
        } else if (stringAction.equals("viajarA_Bresol")) {
            actionObject = new ViajarA_Bresol();
        } else if (stringAction.equals("viajarA_Ase")) {
            actionObject = new ViajarA_Ase();
        } else if (stringAction.equals("viajarA_Ergintone")) {
            actionObject = new ViajarA_Ergintone();
        } else if (stringAction.equals("viajarA_Bulovos")) {
            actionObject = new ViajarA_Bulovos();
        } else if (stringAction.equals("viajarA_Mixocu")) {
            actionObject = new ViajarA_Mixocu();
        } else if (stringAction.equals("viajarA_Peregary")) {
            actionObject = new ViajarA_Peregary();
        } else if (stringAction.equals("viajarA_Vinizaile")) {
            actionObject = new ViajarA_Vinizaile();
        } else if (stringAction.equals("viajarA_Icaedur")) {
            actionObject = new ViajarA_Icaedur();
        } else if (stringAction.equals("viajarA_Cenede")) {
            actionObject = new ViajarA_Cenede();
        } else if (stringAction.equals("viajarA_Cabe")) {
            actionObject = new ViajarA_Cabe();

        }
	 try {
		Thread.sleep(2000);
	} catch (InterruptedException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
        return actionObject;
    }
}
